﻿using Scribble.Repositories;

namespace Scribble.Services
{
    public class CategoryService : ICategoryService
    {
        private readonly ICategoryRepository repository;

        public CategoryService(ICategoryRepository repository)
        {
            this.repository = repository;
        }

        public Category GetByTitle(string urlTitle)
        {
            return repository.GetByTitle(urlTitle);
        }
    }
}